﻿
var xmlHttp_Count;
function GetCount() 
{ 
   GetXmlHttpObject2();
   var loginurl = "Resource_Count.aspx";
   xmlHttp_Count.open("post",loginurl,true);
   xmlHttp_Count.onreadystatechange=onCount;
   xmlHttp_Count.send(null); 
   
}
function onCount()
{
     if (xmlHttp_Count.readyState == 4) 
     {  
       document.getElementById("Resource_Count").innerHTML=xmlHttp_Count.responseText;
     }
}

function GetXmlHttpObject2()
{
  try
    {
     xmlHttp_Count=new XMLHttpRequest();
    }
  catch (e)
    {
    try
      {
       xmlHttp_Count=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (e)
      {
       xmlHttp_Count=new ActiveXObject("Microsoft.XMLHTTP");
      }
    }
}